renderUsername()

checkLogin()

registerLogout()


//首页数据大屏数据接入

async function getData() {
  // try {
  const res = await axios({
    url: "/dashboard"

  })

  // res  渲染新数据

  const overview = res.data.overview

  Object.keys(overview).forEach(key => {
    document.querySelector(`.${key}`).innerHTML = overview[key]
  })

}

getData()